package com.bridgeModel;

import java.math.BigDecimal;

public class Test {
    public static void main(String[] args) {
        Pay pay1 = new WeiXinPayWay(new FacePayMode());

        Pay pay2 = new WeiXinPayWay(new PassWordMode());

        Pay pay3 = new AliPayWay(new FacePayMode());

        Pay pay4 = new AliPayWay(new PassWordMode());

        System.out.println(pay1.tanferPay("123",new BigDecimal(1000)));

        System.out.println(pay2.tanferPay("456",new BigDecimal(1000)));

        System.out.println(pay3.tanferPay("789",new BigDecimal(1000)));

        System.out.println(pay4.tanferPay("101",new BigDecimal(1000)));
    }
}
